<?php
if(!defined('IN_SONG')) exit('No direct script access allowed');      

// Default
$router['home']                                     = 'controller=home&action=index';
$router['admin']                                    = 'controller=admin_home&action=index';
                                   
// Web    
$router['([a-zA-Z0-9_]+)']                          = 'controller=$1&action=index';                               
$router['([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)']          = 'controller=$1&action=$2';

// Admin    
$router['admin/([a-zA-Z0-9_]+)']                    = 'controller=admin_$1&action=index';
$router['admin/([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)']    = 'controller=admin_$1&action=$2'; 
?>